<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<div class="portlet box green">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-gift"></i>医院
        </div>
    </div>
    <div class="portlet-body form">
        <form id="hospitalsForm" class="form-horizontal form-bordered" action="/hospitals/save" method="post">
            <div class="form-group">
                <label class="col-md-3 control-label">医院名称:</label>
                <div class="col-md-4">
                    <label>
                        ${hospitals.hospitalName}
                    </label>
                </div>
            </div>
            <div class="form-group ">
                <label class="control-label col-md-3">图片:</label>
                <div class="col-md-9">
                    <c:if test="${not empty hospitals.imageUrl}">
                        <img src="<c:url value="/common/showImage?filePath=${hospitals.imageUrl}"></c:url>" alt=""/>
                    </c:if>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">医院等级:</label>
                <div class="col-md-4">
                    ${hospitals.level}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">省:</label>
                <div class="col-md-4">
                    ${hospitals.adderssProvinceId}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">市:</label>
                <div class="col-md-4">
                    ${hospitals.adderssCityId}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">地址:</label>
                <div class="col-md-4">
                    ${hospitals.addressDetail}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">简介:</label>
                <div class="col-md-4">
                    <div class="input-icon right">
                        ${hospitals.introduction}
                    </div>
                </div>
            </div>
            <div class="form-actions">
                <div class="col-md-9 col-md-offset-3">
                    <button type="reset" class="btn btn-default" onclick="menu(this,'/hospitals/init');">
                        <spring:message code="btn.return"></spring:message>
                    </button>
                </div>
            </div>
            <input type="hidden" name="id" value="${hospitals.id}">
        </form>
    </div>
</div>
<script type="text/javascript" src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>
<script type="text/javascript">
    $(function () {
        $('#hospitalsForm').validate();
    });
</script>